/*
 * XML Type:  XLocationF
 * Namespace: http://www.seedwill.com/xul/core
 * Java type: com.seedwill.xul.core.XLocationF
 *
 * Automatically generated - do not modify.
 */
package com.seedwill.xul.core.impl;
/**
 * An XML XLocationF(@http://www.seedwill.com/xul/core).
 *
 * This is a complex type.
 */
public class XLocationFImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.seedwill.xul.core.XLocationF
{
    private static final long serialVersionUID = 1L;
    
    public XLocationFImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName X$0 = 
        new javax.xml.namespace.QName("", "x");
    private static final javax.xml.namespace.QName Y$2 = 
        new javax.xml.namespace.QName("", "y");
    
    
    /**
     * Gets the "x" element
     */
    public float getX()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(X$0, 0);
            if (target == null)
            {
                return 0.0f;
            }
            return target.getFloatValue();
        }
    }
    
    /**
     * Gets (as xml) the "x" element
     */
    public org.apache.xmlbeans.XmlFloat xgetX()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlFloat target = null;
            target = (org.apache.xmlbeans.XmlFloat)get_store().find_element_user(X$0, 0);
            return target;
        }
    }
    
    /**
     * Sets the "x" element
     */
    public void setX(float x)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(X$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(X$0);
            }
            target.setFloatValue(x);
        }
    }
    
    /**
     * Sets (as xml) the "x" element
     */
    public void xsetX(org.apache.xmlbeans.XmlFloat x)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlFloat target = null;
            target = (org.apache.xmlbeans.XmlFloat)get_store().find_element_user(X$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlFloat)get_store().add_element_user(X$0);
            }
            target.set(x);
        }
    }
    
    /**
     * Gets the "y" element
     */
    public float getY()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(Y$2, 0);
            if (target == null)
            {
                return 0.0f;
            }
            return target.getFloatValue();
        }
    }
    
    /**
     * Gets (as xml) the "y" element
     */
    public org.apache.xmlbeans.XmlFloat xgetY()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlFloat target = null;
            target = (org.apache.xmlbeans.XmlFloat)get_store().find_element_user(Y$2, 0);
            return target;
        }
    }
    
    /**
     * Sets the "y" element
     */
    public void setY(float y)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(Y$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(Y$2);
            }
            target.setFloatValue(y);
        }
    }
    
    /**
     * Sets (as xml) the "y" element
     */
    public void xsetY(org.apache.xmlbeans.XmlFloat y)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlFloat target = null;
            target = (org.apache.xmlbeans.XmlFloat)get_store().find_element_user(Y$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlFloat)get_store().add_element_user(Y$2);
            }
            target.set(y);
        }
    }
}
